package com.wz.jiangsu.main.string;

/**
 * @author wangzhou
 * @version 1.0
 * @date 2025/3/16 21:34
 */
public class TestSonAndP {
    public static void main(String[] args) {
        String str = "abcdabcdabcdabcd";


        Boolean result = getStrFromCAndSt(str);
    }

    private static Boolean getStrFromCAndSt(String str) {

        StringBuilder sb = new StringBuilder(str + str);

        sb.deleteCharAt(0);
        sb.deleteCharAt(sb.length() - 1);

        return sb.toString().contains(str);



    }
}
